package ld.oauth.blog.service.article.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ld.oauth.blog.mapper.article.ArticleCategoryMapper;
import ld.oauth.blog.model.po.article.ArticleCategory;
import ld.oauth.blog.service.article.ArticleCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ld
 * @since 2022-09-24
 */
@Service
public class ArticleCategoryServiceImpl extends ServiceImpl<ArticleCategoryMapper, ArticleCategory> implements ArticleCategoryService {

    @Autowired
    private ArticleCategoryMapper articleCategoryMapper;

    @Override
    public int removeCategoryIdsByArticleId(Integer articleId) {
        return articleCategoryMapper.removeCategoryIdsByArticleId(articleId);
    }

    @Override
    public int removeLabelsIdsByArticleId(Integer articleId) {
        return articleCategoryMapper.removeLabelsIdsByArticleId(articleId);
    }
}
